﻿using System;
using System.Threading;

namespace time
{
    internal class Thread1
    {
        public static void work()
        {
            Thread nt = new Thread(new ThreadStart(display));
            nt.Start();
            display();
        }

        private static void display()
        {
            for (int i = 0; i < 10; i++)
            {
                Console.WriteLine(i);
            }
        }
    }
}